package com.videoaggre.zcl.ui.fragment.meizuo

import android.os.Bundle
import android.view.View
import com.videoaggre.zcl.bean.EnterdeskClassify
import com.videoaggre.zcl.common.ENTERDESK_CLASSIFY
import com.videoaggre.zcl.common.startKtxActivity
import com.videoaggre.zcl.ui.activity.wallpaper.meizuo.MeizuoClassifyActivity
import com.videoaggre.zcl.ui.fragment.enterdesk.EnterdeskClassifyFragment

class MeizuoClassifyFragment : EnterdeskClassifyFragment() {

    override fun initData(rootView: View?, savedInstanceState: Bundle?) {
        mEnterdeskClassifyAdapter.datas = mutableListOf<EnterdeskClassify>().apply {
            add(EnterdeskClassify("http://pic1.win4000.com/mobile/2020-11-13/5fae30d100d39_250_380.jpg", "美女", "2340"))
            add(EnterdeskClassify("http://pic1.win4000.com/mobile/2020-11-16/5fb1e972c0dbb_250_380.jpg", "植物", "2356"))
            add(EnterdeskClassify("http://pic1.win4000.com/mobile/2020-11-17/5fb3936e3c09a_250_380.jpg", "动漫", "2346"))
            add(EnterdeskClassify("http://pic1.win4000.com/mobile/2020-11-16/5fb20d3806215_250_380.jpg", "美食", "2362"))
            add(EnterdeskClassify("http://pic1.win4000.com/mobile/2020-11-13/5fae1d6c1cb92_250_380.jpg", "节日", "2339"))
            add(EnterdeskClassify("http://pic1.win4000.com/mobile/2020-11-17/5fb392cc9c0ae_250_380.jpg", "影视", "2354"))
            add(EnterdeskClassify("http://pic1.win4000.com/mobile/2020-11-17/5fb3449a6eff7_250_380.jpg", "非主流", "2351"))
            add(EnterdeskClassify("http://pic1.win4000.com/mobile/2020-11-17/5fb39468e57db_250_380.jpg", "明星", "2338"))
            add(EnterdeskClassify("http://pic1.win4000.com/mobile/2020-10-29/5f9a55caed8a0_250_380.jpg", "唯美", "2344"))
            add(EnterdeskClassify("http://pic1.win4000.com/mobile/2020-11-16/5fb240e4b8540_250_380.jpg", "游戏", "2353"))
            add(EnterdeskClassify("http://pic1.win4000.com/mobile/2020-11-17/5fb37d5d5743e_250_380.jpg", "创意", "2352"))
            add(EnterdeskClassify("http://pic1.win4000.com/mobile/2020-11-13/5fadfe650c925_250_380.jpg", "汽车", "2342"))
            add(EnterdeskClassify("http://pic1.win4000.com/mobile/2020-10-15/5f87e44c97491_250_380.jpg", "爱情", "2347"))
            add(EnterdeskClassify("http://pic1.win4000.com/mobile/2020-11-17/5fb3963cedeb2_250_380.jpg", "卡通", "2349"))
            add(EnterdeskClassify("http://pic1.win4000.com/mobile/2020-01-17/5e211473d6af2_250_380.jpg", "动态", "2348"))
            add(EnterdeskClassify("http://pic1.win4000.com/mobile/2020-09-11/5f5b14b792961_250_380.jpg", "体育", "2360"))
            add(EnterdeskClassify("http://pic1.win4000.com/mobile/2020-09-22/5f6967123ba6f_250_380.jpg", "苹果", "2345"))
            add(EnterdeskClassify("http://pic1.win4000.com/mobile/2020-11-16/5fb1f6e3902bf_250_380.jpg", "搞笑", "2350"))
            add(EnterdeskClassify("http://pic1.win4000.com/mobile/2020-11-16/5fb2414027e86_250_380.jpg", "动物", "2355"))
            add(EnterdeskClassify("http://pic1.win4000.com/mobile/2020-11-17/5fb348639b427_250_380.jpg", "风景", "2341"))
            add(EnterdeskClassify("http://pic1.win4000.com/mobile/2020-11-17/5fb3958880541_250_380.jpg", "风格", "2359"))
            add(EnterdeskClassify("http://pic1.win4000.com/mobile/2020-11-17/5fb341d207c9a_250_380.jpg", "可爱", "2343"))
        }
        mEnterdeskClassifyAdapter.notifyDataSetChanged()
    }

    override fun onClick(view: View, position: Int) {
        startKtxActivity<MeizuoClassifyActivity>(value = ENTERDESK_CLASSIFY to mEnterdeskClassifyAdapter.getItem(position))
    }
}